package com.gun.management.module.raffle.controller.admin.lotterylog.vo;

import com.gun.management.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.gun.management.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 用户中奖日志分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class LotteryLogPageRequestVO extends PageParam {

    @Schema(description = "用户id", example = "13101")
    private Long userId;

    @Schema(description = "抽奖id", example = "15477")
    private Long lotteryId;

    @Schema(description = "抽奖名称", example = "九宫格298")
    private String lotteryName;

    @Schema(description = "抽奖类型id", example = "15473")
    private Long lotteryCategoryId;

    @Schema(description = "用户信息", example = "user259(id:20)")
    private String nickName;

    @Schema(description = "奖品名称", example = "耳机V285")
    private String prizeName;

    @Schema(description = "奖品id", example = "18176")
    private Long ruleId;

    @Schema(description = "奖品类型id", example = "18177")
    private Long ruleCategoryId;

    @Schema(description = "已抽奖总次数")
    private Integer totalTimes;


    @Schema(description = "每人每天已抽奖次数")
    private Integer dayTotalTimes;

    @Schema(description = "消耗积分")
    private Integer expenseScore;

    @Schema(description = "中奖时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] lotteryTime;

    @Schema(description = "订单号码")
    private String orderNo;

    /**
     * 奖品状态(0:待领取 1：已领取未处理 2:处理成功 3:处理失败)
     */
    @Schema(description = "奖品状态")
    private Integer status;



}